package com.cc.mapper;

import com.cc.entity.Dormitory;

import java.util.List;

/**
* @author Administrator
* @description 针对表【dormitory】的数据库操作Mapper
* @createDate 2025-06-06 10:53:42
* @Entity com.cc.entity.Dormitory
*/
public interface DormitoryMapper {

    // 1. 查询所有宿舍楼信息
    List<Dormitory> selectAllDormitories();

    // 2. 根据ID查询宿舍楼详情
    Dormitory selectDormitoryById(Long id);

    // 3. 新增宿舍楼信息
    int insertDormitory(Dormitory dormitory);

    // 4. 修改宿舍楼信息
    int updateDormitory(Dormitory dormitory,Long id);

    // 5. 删除宿舍楼信息
    int deleteDormitory(Long id);
}
